GtkBox: Set orientable style classes initially
authorMatthias Clasen <mclasen@redhat.com>
Fri, 18 Jul 2014 23:37:33 +0000 (19:37 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 18 Jul 2014 23:37:33 +0000 (19:37 -0400)
This was an omission, horizontal/vertical would only be set
when the orientation is changed.

gtk/gtkbox.c

index dcabef1bfc6579a9e5e54eda1ce681c31697a80d..be1f3f6a4d71306f9d089831fcd4d4e64d753c9c 100644 (file)
@@ -360,6 +360,8 @@ gtk_box_init (GtkBox *box)
   private->spacing = 0;
   private->spacing_set = FALSE;
   private->baseline_pos = GTK_BASELINE_POSITION_CENTER;
+
+  _gtk_orientable_set_style_classes (GTK_ORIENTABLE (box));
 }
 
 static void